<template>
	<view>
		<view class="header">
			<view class="headertitle">我的订单</view>
			<view class="subtitle">全部订单</view>
		</view>
		<view class="row">
			<navigator class="grid" open-type="navigate" url="/pages/integrals/mall" v-for="(item,index) in list"
				:key="index">
				<image :src="item.image"></image>
				<view class="title">{{item.title}}</view>
			</navigator>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
						title: '待付款',
						image: '../../../static/Mine/daifukuan.png',
					},
					{
						title: '待发货',
						image: '../../../static/Mine/daifahuo.png',
					},
					{
						title: '待收货',
						image: '../../../static/Mine/daishouhuo.png',
					},
					{
						title: '待评价',
						image: '../../../static/Mine/icon-receive.png',
					},
					{
						title: '售后/退款',
						image: '../../../static/Mine/icon-receive.png',
					}
				]
			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 20rpx;

		.headertitle {
			font-size: 32rpx;
			font-weight: 500;
			margin-left: 20rpx;
		}

		.subtitle {
			font-size: 24rpx;
			color: #666;
			// float: right;
			margin-right: 20rpx;
		}
	}

	.row {
		margin-top: 20rpx;
		width: 100%;
		display: flex;
		align-items: center;

		.grid {
			flex: 1;
			flex-shrink: 0;
			display: flex;
			flex-direction: column;
			align-items: center;

			image {
				width: 80rpx;
				height: 80rpx;
			}

			.value {
				font-family: 'neutra';
				margin-bottom: 10rpx;
				font-size: 32rpx;
			}

			.title {
				font-size: 24rpx;
				color: #666;
			}
		}
	}
</style>
